<#macro menus2 children >
    <#if children?? && children?size gt 0>
        <#list children as child>
            <#if child.children?? && child.children?size gt 0>
                <li>
                    <a href="#">
                        <i class="fa ${child.attributes.icon}"></i>
                        <span class="nav-label" >${child.text}</span> <span  class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <@menus2 children=child.children/>
                    </ul>
                </li>

            <#else>
                <li>
                <a class="J_menuItem"   href="${child.attributes.url}">${child.text}</a>
                </li>
            </#if>
        </#list>
    </#if>
</#macro>
<@menus2 children=menus />
